package com.example.demo.Mapper;

import com.example.demo.Pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface LoginMapper {

    //TODO 这里的返回值记得返回一个对象用于在SERVICE层进行判断是否有账号
    @Select("select * from shixun.user where name = #{name} and password = #{password}")
    User login(String name);
}
